#ifndef INCLUDED_MELEE_H
#define INCLUDED_MELEE_H

#include <SGE.h>
using namespace SGE;

class Melee
{
	public:
		Melee();
		~Melee();

		void Load(const char* meleeName);
		void Unload();
		void Update(float deltaTime);
		void Render(const SVector2& viewOffset);

		void Attack(const SVector2& pos, bool fLeft);
		void Kill();
		void KillAnimation();

		bool isActive() const { return mActive; }
		SCircle GetBoundingCircle() const	{ if(mActive) return SCircle(mPosition, 50.0f); 
												else return SCircle(SVector2(0.0f, 0.0f), 0.0f);}

	private:
		SGE_Sprite mSprite;
		SVector2 mPosition;
		bool mActive; 
		float mAttackDelay;

		bool mRenderActive;
		float mRenderDelay;
};
#endif // #ifndef INCLUDED_MELEE_H